#!/usr/bin/env python

import wx
from _base import Base

class Measure(Base):
    
    def bind(self):
        super(Measure, self).bind()
        view = self.view
        tool = view.ToolBar
        
        view.Bind(wx.EVT_MENU, self.setting, tool.setting.tool)
        view.Bind(wx.EVT_MENU, self.start, tool.start.tool)
        view.Bind(wx.EVT_MENU, self.stop, tool.stop.tool)
        
    def setting(self, event):
        self.presenter.showSetting()
        event.Skip()
    
    def start(self, event):
        self.presenter.start()
        event.Skip()
        
    def stop(self, event):
        self.presenter.stop()
        event.Skip()